package com.usian.common.exption;

import com.usian.common.ResultCodeEnum;

public class UsernameNotExistException extends RuntimeException{
    ResultCodeEnum resultCodeEnum;

    /**
     * 获取异常的状态码枚举
     *
     * @return ResultCodeEnum类型的状态码枚举
     */
    public ResultCodeEnum getResultCodeEnum() {
        return resultCodeEnum;
    }

    /**
     * 构造函数，初始化异常对象
     *
     * @param resultCodeEnum 异常的状态码枚举
     */
    public UsernameNotExistException(ResultCodeEnum resultCodeEnum){
        this.resultCodeEnum = resultCodeEnum;
    }

}
